<div class="admin-content" id="accordion">
	<div class="am-cf am-padding">
		<div class="am-fl am-cf">
			<strong class="am-text-primary am-text-lg">广告横幅</strong> / <small>AdBanner</small>
		</div>
	</div>
	<div class="am-panel-default">
		<ul class="am-avg-sm-1 am-avg-md-4 am-avg-lg-4 am-margin gallery-list">
			<li ng-repeat="topbanner in topbanners track by $index">
				<div class="am-g" ng-model="nproduct">

					<div class="am-form am-form-horizontal">
						<div>
							<ul class="am-avg-sm-1">
								<li>
									<!-- 强行去边框 -->
									<div class="am-img-bdrs am-img-thumbnail" style="border: none;">
										<img ng-click="pass(topbanner.imageId)"
											data-am-modal="{target: '#my-actions'}"
											ng-src="{{ topbanner.imageId ? baseUrl+topbanner.imageId+formatImage : 'sad.png'  }}" />
									</div>
									<div>
										<input ng-disabled="topbanner.status" type="file"
											ng-file-select="onFileSelect($files,topbanner)" />
									</div>
								</li>
							</ul>
						</div>
					</div>

					<!--表单验证  -->
					<div>
						<form class="am-form am-form-horizontal" name="formName">
							<div class="am-form-group">
								<label>描述</label>
								<div>
									<label ng-show=false ng-model=topbanner.id></label> <input
										ng-readonly="topbanner.status" ng-init="topbanner.status=true"
										ng-model="topbanner.description" placeholder="请输入描述"
										type="text">
								</div>
							</div>

							<div class="am-form-group">
								<label>优先级</label>
								<div>
									<input type="number" ng-readonly="topbanner.status"
										ng-minlength="1" ng-model="topbanner.priority"
										ng-maxlength="100" />
								</div>
							</div>

							<div class="am-form-group">
								<label>修改时间</label>
								<div>
									<input readonly
										value="{{ topbanner.modifyTime |  date : 'yyyy-MM-dd HH:mm:ss' }}"
										class="am-form-field">
								</div>
							</div>

							<div class="am-form-group">
								<label>备注</label>
								<div>
									<input type="text" ng-readonly="topbanner.status"
										ng-model="topbanner.note" />
								</div>
							</div>
							<div class="am-form-group">
								<div>
									<button ng-disabled="formName.$invalid" type="button"
										ng-model="topbanner.save" ng-init="topbanner.save='编辑'"
										class="am-btn am-btn-primary"
										ng-click="sumbitdata(topbanner,formName.$dirty)">{{
										topbanner.save }}</button>
									<button type="button" class="am-btn am-btn-primary"
										ng-click="deletetopbanner(topbanner)">删除</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</li>
			<!-- 显示结束 -->
			<li>
				<div ng-model="formdata" ng-click="add()">
					<div>
						<button class="am-btn am-btn-default am-btn-xl am-round">
							<i class="am-icon-plus am-icon-lg"></i>
						</button>
					</div>
				</div>
			</li>
		</ul>
	</div>
</div>
<!-- =================================================================================================================== -->
